﻿@model IEnumerable<Mvc.QAS.Nekorama.Question>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Bounty.BountyID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Tag.TagName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Tag1.TagName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Tag2.TagName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Tag3.TagName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Tag4.TagName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Title)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Content)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.VoteCount)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IsAnswered)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IsSpam)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SpamCount)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EditReason)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.VoteUpUserList)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.VoteDownUserList)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SpamMarkUserList)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ViewCount)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreatedDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.User.DisplayName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.LastModifiedDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.User1.DisplayName)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Bounty.BountyID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Tag.TagName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Tag1.TagName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Tag2.TagName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Tag3.TagName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Tag4.TagName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Content)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VoteCount)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsAnswered)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsSpam)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SpamCount)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EditReason)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VoteUpUserList)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VoteDownUserList)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SpamMarkUserList)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ViewCount)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreatedDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.User.DisplayName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LastModifiedDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.User1.DisplayName)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.QuestionID }) |
            @Html.ActionLink("Details", "Details", new { id=item.QuestionID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.QuestionID })
        </td>
    </tr>
}

</table>
